package nl.rainbowsheep.reisorg.rest.service.service;

import java.util.Set;
import nl.rainbowsheep.reisorg.rest.service.model.Customer;
import nl.rainbowsheep.reisorg.rest.service.model.TravelGroup;
import nl.rainbowsheep.reisorg.rest.service.repository.TravelGroupRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Service class for customers
 */
@Service
public class TravelGroupService {

    @Autowired
    private TravelGroupRepository travelgrouprepository;

    public Set<TravelGroup> findTravelGroups(Customer customer) {
        return travelgrouprepository.findByCustomers(customer);
    }
}
